<?php
/**
 * Created by PhpStorm.
 * User: 异步加载
 * Date: 2017/12/20
 * Time: 19:39
 */

namespace app\api\controller\v1;


use app\api\service\UserToken;
use app\api\validate\TokenGet;

class Token
{
        public function getToken($code = ''){
            (new TokenGet())->gocheck();
            $ut = new UserToken($code);
            $token = $ut->get();
            return json($token,200);
        }
}